<!DOCTYPE html>
<html>
    <head>
        <title>首页</title>
        <meta charset="utf-8">
        <style type="text/css">
            html,body{
            width: 100%;
            height: 100%;
            margin: 0px;}
            .Title{
                display: flex;
                justify-content: space-between;
                padding: 15px 10px 0px 10px;
                color: gray;
            }
            #Title1{
                text-align: center;
                font-size: 40px;
                line-height: 70px;
                font-weight: bold;
                color:rgb(223, 157, 168);

            }
            .Title2{
                padding-top: 30px;
            }
            .Title2:hover{
                color:black;
                cursor: pointer;
                font-weight: bold;
            }
            .headMenu{
                
                display: flex;
                justify-content: space-around;
                line-height: 40px;
                border-bottom: 2px solid black;
                padding-top: 10px;
                color: gray;
                
            }
            
            #sy:hover{
                color:black;
                cursor: pointer;
                font-weight: bold;
            }
            #cz:hover{
                color:black;
                cursor: pointer;
                font-weight: bold;
            }
            #xs:hover{
                color:black;
                cursor: pointer;
                font-weight: bold;
            }
            #hf:hover{
                color:black;
                cursor: pointer;
                font-weight: bold;
            }


           #box{
            margin: 10px;
           }
            #box input{
                width: 100%;
                height: 38px;
                border-radius: 20px;
                background: rgba(211, 58, 58, 0.05);
                font-size: 14px;
                font-weight: 500;
                text-align: center;
                color: rgba(102, 102, 102, 1);
                line-height: 38px;
                overflow: hidden;
            }
            #Button{
                text-align: end;
            }
            #Pin{
            font-size: 45px;
            text-align: center;
            padding: 20px;
            color:rgb(228, 100, 100);
        }

            #view_div {
            width: 1024px;
            padding: 20px;
            height: 450px;
            margin: 0 auto;
            background-image: url('../static/img/Tu1.jpg');
            background-size: 100% 100%;
        }
        .main_span {
            color: rgb(235, 58, 138);
            font-size: 20px;
            position: relative;
            top: 400px;
        }
        .preview {
            width: 1024px;
            margin: 20px auto;
            text-align: center;
            padding: 10px;
            height: auto;
        }
        .preview img {
            width: 200px;
            height: 100px;
            cursor: pointer;
        }

        #Bao{
            font-size: 45px;
            text-align: center;
            padding: 20px;
            color:rgb(228, 100, 100);
            border-top:1px solid black;
        }
        .Shop{
            display: flex;
            justify-content: space-around;
        }
        .cont{
            width: 400px;
            height: 400px;
            text-align: center;
            margin-bottom: 50px;
        }
        .midP {
            font-size: 18px;
            line-height: 20px;
        }
        .cont img{
            width: 300px;
            height: 300px;
        }
        .cont img:hover{
            width: 60%;
            height: 60%;
            cursor: pointer;
        }
        .Tu img{
            width: 100%;
            height:200px;
        }
        #gc{
            color: rgb(231, 127, 194);
            text-align: center;
            font-size: 50px;
            line-height: 3;
        }
        .Bottom{
            background-color: rgb(252, 197, 233);
            width: 100%;
            height: 300px;
        }
        .Bottom_wenzi_top{
            display: flex;
            justify-content: space-around;
            font-size: 20px;
            color: white;
            padding: 20px;
            line-height: 50px;
        }
        .Bottom_wenzi_bottom{
            text-align: center;
        }
        #return{
                width: 60px;
                position: fixed;
                right: 20px;
                bottom: 100px;
            }
        #return:hover{
            cursor: pointer;
            background-color: rgb(196, 191, 191);
        }
        a{
            text-decoration: none;
            color: gray;
        }
        

     </style>


     <script type="text/javascript">
      function show1(){
         document.getElementById("view_div").style.backgroundImage="url('../static/img/Tu1.jpg')";
     }
     function show2(){
        document.getElementById("view_div").style.backgroundImage="url('../static/img/Tu2.jpg')";
     }
     function show3(){
        document.getElementById("view_div").style.backgroundImage="url('../static/img/Tu3.jpg')";
     }
     function Ss(){
            window.open('./搜索.html')
     }
     window.onscroll=function(){
        scrollFunction();
     }
     function scrollFunction(){
        if(document.body.scrollTop>20||document.documentElement.scrollTop>20){
            document.getElementById("return").style.display="block";
        }
        else{
            document.getElementById("return").style.display="none";
        }
     }
     function Return(){
        document.body.scrollTop=0;
        document.documentElement.scrollTop=0;
     }

 </script>
     
    </head>
    <body>
       
        <div class="Title">
        <div class="Title2">客服中心</div>
        <div class="Title2">关注我们</div>
        <div id="Title1">GraceVita美妆网</div>
        <a href="./gouwu.html" class="Title2" target="_blank">购物袋</a>
        <a href="./sss.html" class="Title2" target="_blank">会员中心</a>
        </div>
        
        <div class="headMenu">
        <div id="sy">首页</div>
        <div id="cz">彩妆</div>
        <div id="xs">香水</div>
        <div id="hf">护肤</div>
        </div>
   


        <div id="box">
            <input type="search" name="search" placeholder="搜索商品">
        </div>
        <div id="Button">
        <input type="button" value="搜索" onclick="Ss()">
        </div>

        <div id="Pin">精品推荐</div>
        <div id="view_div">
        <span class="main_span">倾情推荐，只为你因为我们而获得喜悦。</span>
        </div>

    <div class="preview">
        <img src="../static/img/Tu1.jpg" onclick="show1()" />
        <img src="../static/img/Tu2.jpg" onclick="show2()"/>
        <img src="../static/img/Tu3.jpg" onclick="show3()"/>
    </div>

   <div>
    <div id="Bao">惊喜爆款</div>
   <div class="Shop">
    <div class="cont">
        <a href="grace.html" target="_blank"><img src="../static/img/Bao1.jpg"></a>
        <div class="mai">
            <p class="midP">Lancome 兰蔻 持妆轻透粉底液</p>
            <p class="midP">持妆粉底液</p>
        </div>
    </div>
    <div class="cont">
    <img src="../static/img/Bao2.jpg">
    <div class="mai">
        <p class="midP">Lancome 兰蔻 持妆气垫</p>
        <p class="midP">持妆气垫</p>
    </div>
</div>
<div class="cont">
    <img src="../static/img/Bao3.jpg">
    <div class="mai">
        <p class="midP">Lancome 兰蔻 小粉瓶</p>
        <p class="midP">精华水</p>
    </div>
</div>
</div>

<div class="Tu">
    <img src="../static/img/GB.jpg">
    <div id="gc">|改变理念，重塑未来|</div>
</div>
<div class="Bottom">
    <div>
    <div class="Bottom_wenzi_top">
    <div>关于我们</div>
    <div>物流服务</div>
    <div>品牌故事</div>
    </div>
    <div class="Bottom_wenzi_bottom">
    <p>国家药监局提示您：宣称用于祛斑美白、防晒、染发、烫发等的化妆品为特殊用途化妆品，产品标签上应标注“国妆特字”或者“国妆特进字”的标准文号。</p>
    <span>© GraceVita</span> 
    <span>晋ICP备246810号-28  晋公网安备 123456789号<span>
    </div>
    </div>
</div>
<div>
<img id="return" src="../static/img/DB.png" onclick="Return()"></div>

   
    </body>
</html>